#title: 使用XML作为配置文件格式
#index:0,1
#author:wendal(wendal1985@gmail.com)
--------------------------------------------------------------------------------------------------------
格式约定: 参阅xsd文件(包含在jar中): [https://github.com/nutzam/nutz/blob/master/src/nutz-ioc-0.1.xsd nutz-ioc-0.1.xsd] [https://git.oschina.net/nutz/nutz/raw/master/src/nutz-ioc-0.1.xsd Git@OSC镜像]

示例文件 [https://github.com/nutzam/nutz/blob/master/test/org/nutz/ioc/loader/xml/conf/zzh-offered.xml 示例] [https://git.oschina.net/nutz/nutz/raw/master/test/org/nutz/ioc/loader/xml/conf/zzh-offered.xml Git@OSC镜像]:
{{{<xml>
<ioc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="nutz-ioc-0.1.xsd">
	<obj name="obj" singleton="true" scope="app" parent="XXX"
		type="java.lang.String">
		<args>
			<str>Tasdfadf</str> <!-- 对应具体类型 -->
			<int>23</int>
			<float>78.34</float>
			<bool>true</bool>
			<refer>abc</refer>
			<refer>$Ioc</refer>
			<java>$abc.find('YYY')</java>
			<env>TOMCAT_HOME</env>
			<file>/home/zozoh/tmp/name.txt</file>
			<obj type="java.lang.StringBuilder" name="xx"> <!-- 内部对象 -->
				<args>
					<str>tttt</str>
				</args>
			</obj>
			<array>
				<str>XXXX</str>
				<str>XXXX</str>
			</array>
			<list>
				<int>34</int>
				<float>78.34</float>
			</list>
			<map>
				<item key="a">
					<str>XXXX</str>
				</item>
				<item key="B">
					<int>11</int>
				</item>
			</map>
		</args>
		<field name="field1">
			<env>JAVA_HOME</env>
		</field>
		<events>
			<create>onCreate</create>
			<depose>depose</depose>
			<fetch>com.you.app.OnFetchObject</fetch>
		</events>
	</obj>
	<obj name="XXX">
		<events>
			<create>xxxx</create>
			<depose></depose>
		</events>
	</obj>
</ioc>
}}}